#pragma once
#include <crow.h>
#include <model/dto/member/points_exchange_record_dto.hpp>
#include <string>

class PointsExchangeRecordService {
  public:
  static ServiceResult create(PointsExchangeRecordDTO& dto);
  static ServiceResult
  updateByPointsExchangeRecordId(const std::string& ex_id,
                                 PointsExchangeRecordDTO& dto);
  static ServiceResult removeByPointsExchangeRecordId(const std::string& ex_id);
  static ServiceResult getByPage(const int page, const int page_size);
  static ServiceResult getAll();
};
